home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
powerb5.zip
/
P5UTL007.TIP
< prev
next >
Wrap
Text File
|
1993-06-01
|
2KB
|
51 lines
We wrote a QBASIC screen-blanking program that displays a
user-supplied message and a digital clock, both of which
randomly change color and screen position. With this
program, you can tell other people in the office where you
are with messages like "Out to lunch" or "At a meeting; back
by noon." What's more, co-workers who know you have this
program can leave you messages you can't possibly miss, like
'John Smith called. Phone 555-1234'. Finally, since the
message and time move across an otherwise blank screen, this
program protects your monitor from burn-in.
To prepare the program, type it into an ASCII text file
named SAVER.BAS. To run it, enter the command QBASIC /RUN
<path>\SAVER, where <path> is the path to SAVER.BAS. After
you've entered a message and the program starts displaying
that message and the time on your screen, you can return to
DOS by pressing any key. The program should work well on any
machine that's running DOS 5.0. You can delete the lines
that set the color 40 and 100 if you don't happen to have a
color monitor. The interval between screen changes can be
controlled by changing the constant (we used 1000) in line
120. You can decrease the type size by changing W = 40 to W
= 80 on line 5; in fact, some graphics adapters may require
you to do this.
Dan and Mary Dean
Fairborn, Ohio
Editor's Note: This program is simplicity itself. I made
only a few modifications: I eliminated the darker colors
(which at a distance don't show up well or sometimes at
all), made the positions of the date and message more
random, made it easier to use 40-column mode, and allowed
the user to exit with a single keystroke.
If the command line to call this program seems cumbersome,
you can put it in a one-line batch file and put the batch
file in a directory that's listed in your AUTOEXEC.BAT'S
PATH command. One caveat: If someone leaves you a message
with this program, make sure you jot it down before you
press a key. Otherwise, it will be gone for good when you
return to DOS.
Title: Simple Screen Saver
Category: UTL
Issue Date: September, 1992
Editor: Brett Glass
Supplementary Files: P5UTL\SAVER.BAS
Filename: P5UTL007.TIP